
cmake_minimum_required(VERSION 2.8)
project(socket_ipc)


include_directories(
    include
    ${CMAKE_SOURCE_DIR}
)

aux_source_directory(${PROJECT_SOURCE_DIR}/src SRC_LIST)

add_subdirectory(example)

set(OUTPUT_ROOT ${PROJECT_SOURCE_DIR}/output)
install(TARGETS ser
    DESTINATION ${OUTPUT_ROOT}/socket_ipc/bin)
install(TARGETS cli
    DESTINATION ${OUTPUT_ROOT}/socket_ipc/bin)

install(FILES ${PROJECT_SOURCE_DIR}/example/server/sup_cmd.txt
    DESTINATION ${OUTPUT_ROOT}/socket_ipc)
